package org.com.behavioralPattern.interpreterPattern;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/28 10:27
 */
public class Variables {
    Map<Variable,Integer> v=new HashMap<Variable, Integer>();

    public void put(Variable variable,int value){
        v.put(variable,value);
    }

    public int get(Variable variable){
       return v.get(variable);
    }
}
